package com.zw.mes.module.cost.service;


import com.zw.mes.module.cost.mapper.DictCommonMapperNew;
import com.zw.mes.module.cost.model.DictCommon;
import com.zw.mes.module.cost.model.Equ;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zw.mes.module.cost.model.Process;

import java.util.Date;
import java.util.List;


@Service
public class DictCommonService {
    @Autowired
    private DictCommonMapperNew dictCommonMapper;
    /** 按分类查询字典数据 */
    public List<DictCommon> findDictByGroupName(String groupName) {
        return dictCommonMapper.findByGroupName(groupName);
    }



    /** 查询工序 */
    public List<Process> findProcesses() {
        return dictCommonMapper.findProcesses();
    }

    /** 查询设备 */
    public List<Equ> findEqu() {
        return dictCommonMapper.findEqu();
    }


}
